package com.vastcom.invoker.service;

import com.vastcom.invoker.dto.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.HashMap;
@Repository
@FeignClient(name = "FIRSTPROVIDER")
public interface ProviderService {

@GetMapping("getObjectTest")
    HashMap getObjectTest();

@PostMapping("postObjectTest")
    HashMap postObject(@RequestBody UserInfo userInfo);

}
